home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7123 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  39 lines

  1. Path: news.primenet.com!not-for-mail
  2. From: "Justin E. Kagan" <jekagan@primenet.com>
  3. Newsgroups: comp.os.ms-windows.programmer.tools.owl,comp.lang.c++,comp.os.ms-windows.programmer.misc
  4. Subject: Re: GetDlgItemText??
  5. Date: 21 Feb 1996 01:20:02 -0700
  6. Organization: Primenet Services for the Internet
  7. Sender: root@primenet.com
  8. Message-ID: <312AD606.2B0E@primenet.com>
  9. References: <4g92tf$1bt@felix.junction.net> <3128ed42.2005508@news.cybercity.dk>
  10. X-Posted-By: ip182.lax.primenet.com
  11. X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
  12. MIME-Version: 1.0
  13. Content-Type: text/plain; charset=iso-8859-1
  14. Content-Transfer-Encoding: 8bit
  15.  
  16. Steen Rab°l wrote:
  17. > On 19 Feb 1996 05:47:27 GMT, Ian <imccalli@portage.net> wrote:
  18. > >I want to get a string from a dialog box, say like a wanted to get
  19. > >d:\games\solitare.exe
  20. > >I figured I have to use the GetDlgItemText(think that's it) but when do I
  21. > >use?
  22. > When you need the information. Just before you exit your dialog.
  23. > Best
  24. > Steen
  25. > --------------------------------------------------
  26. >  EMail :  srabol@vip.cybercity.dk
  27. >        :  scsr@pip.dknet.dk
  28. >  WWW   :  www.cybercity.dk/users/ccc2277/home.html
  29. >  Author of WebDesigner
  30.  
  31. Why go about this the hard way?  Use Class Wizard to derive your dialog class and assign a member 
  32. variable to the control that contains the text.  The member variable is public, so you can access 
  33. it with the . operator after a call to the DoModal() function.
  34.